package z_network_gbb;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Color;
import javax.swing.border.LineBorder;
import javax.swing.SwingConstants;

public class GBBServer extends JFrame {

	private JPanel contentPane;
	private JButton btnServerStart;
	private JButton btnServerStop;
	private JButton btnGameStart;
	private JLabel result;
	private JLabel lblNewLabel_1;
	private JLabel lblNewLabel_2;
	private JButton btnNewButton_3;
	private JButton btnNewButton_4;
	private JButton btnGa;
	private JButton btnBa;
	private JButton btnBo;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GBBServer frame = new GBBServer();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public GBBServer() {
		setTitle("네트워크 가위 바위 보 Game (Server)");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 478, 367);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		contentPane.add(getBtnServerStart());
		contentPane.add(getBtnServerStop());
		contentPane.add(getBtnGameStart());
		contentPane.add(getResult());
		contentPane.add(getLblNewLabel_1());
		contentPane.add(getLblNewLabel_2());
		contentPane.add(getBtnNewButton_3());
		contentPane.add(getBtnNewButton_4());
		contentPane.add(getBtnGa());
		contentPane.add(getBtnBa());
		contentPane.add(getBtnBo());
	}
	private JButton getBtnServerStart() {
		if (btnServerStart == null) {
			btnServerStart = new JButton("게임서버 시작");
			btnServerStart.setBounds(12, 10, 164, 23);
		}
		return btnServerStart;
	}
	private JButton getBtnServerStop() {
		if (btnServerStop == null) {
			btnServerStop = new JButton("게임서버종료");
			btnServerStop.setBounds(188, 10, 140, 23);
		}
		return btnServerStop;
	}
	private JButton getBtnGameStart() {
		if (btnGameStart == null) {
			btnGameStart = new JButton("게임시작");
			btnGameStart.setBounds(353, 10, 97, 56);
		}
		return btnGameStart;
	}
	private JLabel getResult() {
		if (result == null) {
			result = new JLabel("");
			result.setBackground(Color.ORANGE);
			result.setOpaque(true);
			result.setBounds(12, 43, 316, 23);
		}
		return result;
	}
	private JLabel getLblNewLabel_1() {
		if (lblNewLabel_1 == null) {
			lblNewLabel_1 = new JLabel("내이미지");
			lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
			lblNewLabel_1.setBorder(new LineBorder(new Color(0, 0, 0)));
			lblNewLabel_1.setBounds(12, 76, 97, 77);
		}
		return lblNewLabel_1;
	}
	private JLabel getLblNewLabel_2() {
		if (lblNewLabel_2 == null) {
			lblNewLabel_2 = new JLabel("상대이미지");
			lblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);
			lblNewLabel_2.setBorder(new LineBorder(new Color(0, 0, 0)));
			lblNewLabel_2.setBounds(12, 163, 97, 77);
		}
		return lblNewLabel_2;
	}
	private JButton getBtnNewButton_3() {
		if (btnNewButton_3 == null) {
			btnNewButton_3 = new JButton("내것");
			btnNewButton_3.setBounds(121, 76, 158, 165);
		}
		return btnNewButton_3;
	}
	private JButton getBtnNewButton_4() {
		if (btnNewButton_4 == null) {
			btnNewButton_4 = new JButton("상대것");
			btnNewButton_4.setBounds(291, 79, 159, 161);
		}
		return btnNewButton_4;
	}
	private JButton getBtnGa() {
		if (btnGa == null) {
			btnGa = new JButton("가위");
			btnGa.setBounds(12, 262, 130, 56);
		}
		return btnGa;
	}
	private JButton getBtnBa() {
		if (btnBa == null) {
			btnBa = new JButton("바위");
			btnBa.setBounds(172, 262, 124, 56);
		}
		return btnBa;
	}
	private JButton getBtnBo() {
		if (btnBo == null) {
			btnBo = new JButton("보");
			btnBo.setBounds(320, 262, 130, 56);
		}
		return btnBo;
	}
}
